<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>应用列表</h1>
<table border="1">
    <thead>
        <tr>
            <td>应用名称</td>
            <td>应用主机列表</td>
        </tr>
    </thead>
    <tbody>
        {% for app in app_list %}
            <tr>
                <td>{{ app.name }}</td>
                <td>
                    {% for host in app.r.all %}
                        <span>{{ host.hostname }}</span>
                    {% endfor %}
                </td>
            </tr>
        {% endfor %}
    </tbody>
</table>
</body>
</html>